﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.CompsitePattern.CompanyManager.Abstract
{
    /// <summary>
    /// 抽象的公司
    /// </summary>
    public abstract class AbstractCompany
    {
        protected string _name;

        public AbstractCompany(string name)
        {
            _name = name;
        }

        public abstract void Add(AbstractCompany c);//增加

        public abstract void Remove(AbstractCompany c);//移除

        public abstract void Display(int depth);//显示

        public abstract void LineOfDuty();//履行职责
    }
}
